<div class="panel panel-default" ng-controller="AgencyCtrl">
	<div class="panel-heading">
		订票管理 / 代售点管理
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.name" class="form-control" placeholder="名称">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:100px;">编号</th>
					<th style="width:100px;">名称</th>
					<th style="width:100px;">地址</th>
					<th style="width:100px;">联系人</th>
					<th style="width:100px;">电话</th>
					<th style="width:100px;">是否启用</th>
					<th style="width:80px;">
						<div class="row list-icon">
							<a href tooltip="添加代售点" has-authority="BOOKING_AGENCY_ADD"><i class="fa fa-plus fa-fw m-r-xs" ng-click="write('lg',null,'insert')"></i></a>
						</div>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="agency in dataList">
					<td></td>
					<td>{{agency.code}}</td>
					<td>{{agency.name}}</td>
					<td>{{agency.address}}</td>
					<td>{{agency.contact}}</td>
					<td>{{agency.phone}}</td>
					<td>
					    <span ng-show="agency.valid">启用</span>
					    <span ng-show="!agency.valid">禁用</span>
					</td>
					<td>
						<div class="row list-icon">
						    <a href tooltip="查看二维码" has-authority="BOOKING_AGENCY" style="margin-right: 12px"><i class="fa fa-qrcode" ng-click="show(agency)" ></i></a>
							<a href tooltip="修改" has-authority="BOOKING_AGENCY_UPDATE"><i class="fa fa-pencil fa-fw m-r-xs" ng-click="write('lg',agency,'update')" ></i></a>
							<a href tooltip="删除" has-authority="BOOKING_AGENCY_DEL"><i class="fa fa-times fa-fw" ng-click="del('sm',agency,'delete')" ></i></a>
						</div>
					</td>
				</tr>
				<tr ng-show="dataList==''">
					<td colspan="8" style="text-align: center;">暂无代售点信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>